import 'package:flutter/material.dart';
import 'package:full_display/common/qxp_color.dart';
import 'package:full_display/page/help/help_world_provider.dart';
import 'package:full_display/unit/screen/screen_utility.dart';
import 'package:provider/provider.dart';

class HelpWordWidget extends StatelessWidget {
  const HelpWordWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [ChangeNotifierProvider(create: (_) => HelpWorldProvider())],
      child: HelpWordPage(),
    );
  }
}

class HelpWordPage extends StatefulWidget {
  const HelpWordPage({Key? key}) : super(key: key);

  @override
  State<HelpWordPage> createState() => _HelpWordPageState();
}

class _HelpWordPageState extends State<HelpWordPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      width: MediaQuery.of(context).size.height,
      padding: EdgeInsets.only(left: 20.0.W),
      margin: EdgeInsets.only(top: 24.0.H, left: 20.0.W, right: 20.0.W),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(12),
        color: ColorPlate.white.withOpacity(0.05),
      ),
      child: ListView.builder(
        padding: EdgeInsets.zero,
          itemCount: 34,
          itemBuilder: (cont, index) {
            return Container(
              height: 61,
              child: Column(
                children: [
                  Container(
                    alignment: Alignment.centerLeft,
                    height: 60.0.H,
                    child: Text(
                      '内容',
                      style:
                          TextStyle(color: ColorPlate.white, fontSize: 16.0.SP),
                    ),
                  ),
                  Divider(
                    height: 1.0.H,
                    color: ColorPlate.divider_blue,
                  )
                ],
              ),
            );
          }),
    );
  }
}
